package org.jeecg.modules.question.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.modules.question.entity.AoQuestionItem;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * 题目表
 *
 * @author thankgod7
 * @version V1.0
 * @date 2022-01-18
 */
@Data
@ApiModel(value = "ao_questionPage对象", description = "题目表")
public class AoQuestionPage {

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    private String id;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**
     * 所属部门
     */
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
    /**
     * 题库分类
     */
    @Excel(name = "题库分类", width = 15, dictTable = "ao_category", dicText = "name", dicCode = "code")
    @Dict(dictTable = "ao_category", dicText = "name", dicCode = "code")
    @ApiModelProperty(value = "题库分类")
    private String categoryId;
    /**
     * 分数(保留字段)
     */
    @Excel(name = "分数(保留字段)", width = 15)
    @ApiModelProperty(value = "分数(保留字段)")
    private Integer score;
    /**
     * 难度等级(保留字段)
     */
    @Excel(name = "难度等级(保留字段)", width = 15)
    @ApiModelProperty(value = "难度等级(保留字段)")
    private String difficult;
    /**
     * 正确答案
     */
    @Excel(name = "正确答案", width = 15)
    @ApiModelProperty(value = "正确答案")
    private String correct;
    /**
     * 题目信息
     */
    @Excel(name = "题目信息", width = 15)
    @ApiModelProperty(value = "题目信息")
    private String infoText;
    /**
     * 解析
     */
    @Excel(name = "解析", width = 15)
    @ApiModelProperty(value = "解析")
    private String analysis;
    /**
     * 作答次数
     */
    @ApiModelProperty(value = "作答次数")
    private Integer answerCount;
    /**
     * 正确次数
     */
    @ApiModelProperty(value = "正确次数")
    private Integer rightCount;
    /**
     * 类型
     */
    @Excel(name = "类型", width = 15, dicCode = "question_type")
    @Dict(dicCode = "question_type")
    @ApiModelProperty(value = "类型")
    private String type;
    /**
     * 是否练习题
     */
    @Excel(name = "是否练习题", width = 15, dicCode = "yn")
    @Dict(dicCode = "yn")
    @ApiModelProperty(value = "是否练习题")
    private String isTest;

    @ExcelCollection(name = "选项")
    @ApiModelProperty(value = "选项")
    private List<AoQuestionItem> aoQuestionItemList;

}
